//package com.xy.blog.zuul.config;
//
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
//
///**
// * @author zanhonglei
// * @version V1.0
// * @Description:
// * @date 2019/11/23 12:49 上午
// */
////@Configuration
//public class SecurityConfig extends WebSecurityConfigurerAdapter {
//
//
//    private static final String[] AUTH_WHITELIST = {
//            "/**/v2/api-docs",
//            "/swagger-resources",
//            "/swagger-resources/**",
//            "/configuration/ui",
//            "/configuration/security",
//            "/swagger-ui.html",
//            "swagger-resources/configuration/ui",
//            "/doc.html",
//            "/webjars/**"
//    };
//
//    @Override
//    public void configure(HttpSecurity http) throws Exception {
//        http.authorizeRequests().antMatchers("/v2/api-docs", "/auth/**").permitAll();
//        for (String au : AUTH_WHITELIST) {
//            http.authorizeRequests().antMatchers(au).permitAll();
//        }
//    }
//
//
//}
